package com.dingreading.cloud.subject.service;

import com.dingreading.cloud.subject.dto.CourseListDto;
import com.dingreading.cloud.subject.entity.Course;
import com.mybatisflex.core.service.IService;

import java.util.List;

/**
 * 服务层。
 *
 * @author Administrator
 * @since 2023-11-22
 */
public interface CourseService extends IService<Course> {

    // 更新下载次数
    void updateDownloadNum(Long id);

    List<CourseListDto> listByTypeIdAndKeyword(Long typeId, String keyword);

}
